package org.homeworkadmin.admin.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.homeworkadmin.admin.domain.Users;

/**
 * 用户管理Mapper接口
 *
 * @author homework
 * @date 2024-11-08
 */
@Mapper
public interface UsersMapper {

 int getUsersCount(@Param("userAccount") String account, @Param("userPassword") String userPassword,@Param("userName") String userName,@Param("userPhone") String userPhone);
 List<Users> getUsers(@Param("userAccount") String account, @Param("userPassword") String userPassword,@Param("userName") String userName,
                      @Param("userPhone") String userPhone, @Param("pagesize") int pagesize,@Param("currpage") int currpage);

  int updateUser(Users users);

 int delUser(@Param("userId") int userId);
 int addUser(Users users);
}
